package com.erp.controller;

import com.erp.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("sys")
public class SystemController {

    @RequestMapping("toLogin")
    public String toLogin() {
        System.out.println("denglu");
        return "system/index/login";
    }

    @RequestMapping("index")
    public String toIndex() {
        System.out.println("denglu");
        return "system/index/index";
    }

    @RequestMapping("toDeptManager")
    public String toDeptManager() {
        return "system/dept/deptManager";
    }

    // http://localhost:8080/sys/toDeptRight
    @RequestMapping("toDeptRight")
    public String toDeptRight() {
            return "system/dept/deptRight";
    }

    // http://1ocalhost:8080/sys/toDeptleft
    @RequestMapping("toDeptLeft")
    public String toDeptLeft() {
            return "system/dept/deptleft";
    }

}